<?php

require './Psr4AutoloaderClass.php';

$loader = new \Psr\Psr4AutoloaderClass();

define('ROOT_PATH', __DIR__);

$reg_namespace_array = [
    'app\models'     => ROOT_PATH . '/app/modeles',
    'app\views'      => ROOT_PATH . '/app/views',
    'app\controller' => ROOT_PATH . '/app/controller',
];
if (!empty($reg_namespace_array)) {
    foreach ($reg_namespace_array as $key => $value) {

        $loader->addNamespace($key, $value);
    }
}

$loader->register();
